package com.xunji.user.vo.req;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("菜单添加vo")
@Data
public class MenuAddRequest {

    @ApiModelProperty("资源名")
    @NotBlank(message = "资源名不能为空")
    private String name;

    @ApiModelProperty("资源地址")
    @NotBlank(message = "资源地址不能为空")
    private String uri;

    @ApiModelProperty("父节点id")
    @NotNull(message = "父节点不能为空")
    private Integer parentId;

    @ApiModelProperty("排序")
    private Integer weight;

    @ApiModelProperty("资源拼音")
    private String pinYin;
}
